home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Lib / test / test_popen2.py < prev    next >
Encoding:
Python Source  |  2000-06-23  |  350 b   |  18 lines

  1. #! /usr/bin/env python
  2. """Test script for popen2.py
  3.    Christian Tismer
  4. """
  5.  
  6. # popen2 contains its own testing routine
  7. # which is especially useful to see if open files
  8. # like stdin can be read successfully by a forked 
  9. # subprocess.
  10.  
  11. def main():
  12.     from os import fork # skips test through ImportError
  13.     import popen2
  14.     popen2._test()
  15.  
  16. main()
  17.  
  18.